package com.kingyea.kim.demo.service.Impl;

import com.kingyea.kim.demo.bean.Demo;
import com.kingyea.kim.demo.dao.DemoMapper;
import com.kingyea.kim.demo.service.DemoService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class DemoServiceImpl implements DemoService {

    @Autowired
    private DemoMapper demoMapper;

    @Override
    public Demo selectById(Integer id) {
        return demoMapper.selectByPrimaryKey(id);
    }
}
